package cn.demo.service0;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication(scanBasePackages = "cn.demo.service0")
//@EnableEurekaClient
@EnableDiscoveryClient

@EnableWebMvc
public class Application {

    public static void main(String[] args) {
        // args = new String[]{"debug"}; // EurekaClient
        Environment env = SpringApplication.run(Application.class, args).getEnvironment();
        System.out.println("Application0.env.from:"+env.getProperty("from"));
    }
}
